package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName crs_car_type_config_details
 */
@ApiModel(description = "车辆类型配置")
@TableName(value ="crs_car_type_config_details")
@Data
public class CarTypeConfigDetails implements Serializable {
    /**
     * 
     */
    @ApiModelProperty("")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String typename;

    /**
     * 变速箱(自动，手动)
     */
    @ApiModelProperty("变速箱(自动，手动)")
    private String speedBox;

    /**
     * 油箱容量
     */
    @ApiModelProperty("油箱容量")
    private String tankCapacity;

    /**
     * 排量
     */
    @ApiModelProperty("排量")
    private String displacement;

    /**
     * 百公里油耗
     */
    @ApiModelProperty("百公里油耗")
    private String fcphk;

    /**
     * 座位数
     */
    @ApiModelProperty("座位数")
    private Integer seating;

    /**
     * 进气（自然吸气、涡轮增压、机械增压和双增压）)
     */
    @ApiModelProperty("进气（自然吸气、涡轮增压、机械增压和双增压）)")
    private String airSuction;

    /**
     * 添加时间
     */
    @ApiModelProperty("添加时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addtime;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CarTypeConfigDetails other = (CarTypeConfigDetails) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTypename() == null ? other.getTypename() == null : this.getTypename().equals(other.getTypename()))
            && (this.getSpeedBox() == null ? other.getSpeedBox() == null : this.getSpeedBox().equals(other.getSpeedBox()))
            && (this.getTankCapacity() == null ? other.getTankCapacity() == null : this.getTankCapacity().equals(other.getTankCapacity()))
            && (this.getDisplacement() == null ? other.getDisplacement() == null : this.getDisplacement().equals(other.getDisplacement()))
            && (this.getFcphk() == null ? other.getFcphk() == null : this.getFcphk().equals(other.getFcphk()))
            && (this.getSeating() == null ? other.getSeating() == null : this.getSeating().equals(other.getSeating()))
            && (this.getAirSuction() == null ? other.getAirSuction() == null : this.getAirSuction().equals(other.getAirSuction()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTypename() == null) ? 0 : getTypename().hashCode());
        result = prime * result + ((getSpeedBox() == null) ? 0 : getSpeedBox().hashCode());
        result = prime * result + ((getTankCapacity() == null) ? 0 : getTankCapacity().hashCode());
        result = prime * result + ((getDisplacement() == null) ? 0 : getDisplacement().hashCode());
        result = prime * result + ((getFcphk() == null) ? 0 : getFcphk().hashCode());
        result = prime * result + ((getSeating() == null) ? 0 : getSeating().hashCode());
        result = prime * result + ((getAirSuction() == null) ? 0 : getAirSuction().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typename=").append(typename);
        sb.append(", speedBox=").append(speedBox);
        sb.append(", tankCapacity=").append(tankCapacity);
        sb.append(", displacement=").append(displacement);
        sb.append(", fcphk=").append(fcphk);
        sb.append(", seating=").append(seating);
        sb.append(", airSuction=").append(airSuction);
        sb.append(", addtime=").append(addtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}